package com.zyg;

import javax.servlet.http.HttpServlet;



import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserServlet extends HttpServlet{
	public UserServlet(){
		ApplicationContext app=new ClassPathXmlApplicationContext("AppContext.xml");
		UserDao user=app.getBean("userdao",userDaoImpl.class);
		user.delete();
		user.update();
	}
}
